/*
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
*/

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
}

.stats-title {
    display: flex;
    align-items: center;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background-color: #e0f7fa;
}

.stats-icon i {
    font-size: 24px;
    color: #00acc1;
}

.stats-name h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stats-name p {
    color: #666;
    font-size: 14px;
}

.stats-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-outline {
    background-color: transparent;
    border-color: #d1d5da;
    color: #24292e;
}

.btn-outline:hover {
    background-color: #f6f8fa;
}

.btn-primary {
    background-color: #2188ff;
    color: white;
    border-color: #2188ff;
}

.btn-primary:hover {
    background-color: #0d7ae5;
    border-color: #0d7ae5;
}

.stats-period {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}

.period-selector {
    display: flex;
    gap: 10px;
}

.period-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #d1d5da;
    cursor: pointer;
}

.period-btn.active {
    background-color: #2188ff;
    color: white;
    border-color: #2188ff;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-input {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5da;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    display: flex;
    align-items: center;
}

.stat-change.up {
    color: #28a745;
}

.stat-change.down {
    color: #dc3545;
}

.stat-change i {
    margin-right: 3px;
}

.chart-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
}

.chart-toggle {
    display: flex;
    gap: 10px;
}

.chart-toggle-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #d1d5da;
    cursor: pointer;
}

.chart-toggle-btn.active {
    background-color: #2188ff;
    color: white;
    border-color: #2188ff;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.chart-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    gap: 10px;
}

.chart-action-btn {
    padding: 4px 8px;
    font-size: 12px;
    background-color: transparent;
    border: 1px solid #d1d5da;
    border-radius: 4px;
    cursor: pointer;
}

.stats-table-container {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-title {
    font-size: 18px;
    font-weight: 600;
}

.export-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #d1d5da;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e4e8;
}

th {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

td {
    font-size: 14px;
}

.user-cell {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e1e4e8;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-badge.error {
    background-color: #f8d7da;
    color: #721c24;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 5px;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5da;
    background-color: white;
    cursor: pointer;
}

.page-btn.active {
    background-color: #2188ff;
    color: white;
    border-color: #2188ff;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.error-details {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.error-details h4 {
    margin-bottom: 10px;
    color: #dc3545;
}

.error-details pre {
    background-color: white;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 13px;
}